package com;

import java.io.Serializable;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/7 11:26
 * @description
 */
public class Pig implements Serializable {
    private transient int age;
    private String type;
    private float weight;

    public Pig(int age, String type, float weight) {
        this.age = age;
        this.type = type;
        this.weight = weight;
    }

    public Pig() {
    }

    public  int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Pig{" +
                "age=" + age +
                ", type='" + type + '\'' +
                ", weight=" + weight +
                '}';
    }
}
